package com.tdam2011.grupo05.control.app;

import android.app.Application;

import com.tdam2011.grupo05.entities.account.Account;
import com.tdam2011.grupo05.utils.preference.PreferencesHelper;

public class TdamApplication extends Application {

	private PreferencesHelper mHelper;

	private static Account mCurrentAccount;

	public void onCreate() {

		mHelper = new PreferencesHelper(getApplicationContext());

		super.onCreate();
	}

	public PreferencesHelper getPreference() {
		return mHelper;
	}

	public Account getCurrentAccount() {
		return mCurrentAccount;
	}

	public void updateCurrentAccount(Account acc) {
		mCurrentAccount = acc;
	}

}
